﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Drawing;
using Microsoft.DirectX;

using NGE;

namespace MH
{
    [Serializable]
    public class Metal : Sprite
    {
        public Metal()
        {
            Name = "";
            GUID = Guid.NewGuid();
            Avatar = new NImage();
            isNewCar = true;
            //pilot = null;
        }

        bool isNewCar;
        public bool IsNewCar
        {
            get
            {
                return isNewCar;
            }
        }
        public Guid GUID;
        public string InSceneName;

        //Character pilot;

        public Vector3 StopLocation;
        public Direction StopDirection;
        public bool IsRunning;

        public void SetName(string name)
        {
            Name = name;
            isNewCar = false;
        }

        //public Vector3 Location
        //{
        //    get
        //    {
        //        if (!IsRunning)
        //        {
        //            return stopLocation;
        //        }
        //        return pilot.Location;
        //    }
        //    set
        //    {
        //        stopLocation = value;
        //    }
        //}
        //public Direction Direction
        //{
        //    get
        //    {
        //        if (pilot == null)
        //        {
        //            return stopDirection;
        //        }
        //        return pilot.Direction;
        //    }
        //    set
        //    {
        //        stopDirection = value;
        //    }
        //}
        //public bool PilotEnter(Character chr)
        //{
        //    pilot = chr;
        //    return true;
        //}
        //public void PilotExit()
        //{
        //    stopLocation = pilot.Location;
        //    pilot = null;
        //}
    }
}
